#ifdef _RMS_TOML_

#include "Protocol.h"

string INT2STR(int i)
{
  ostringstream res;
  res << (char)i << (char)(i>>8) << (char)(i>>16) << (char)(i>>24);
  return res.str();
};

#ifdef __DEBUG
char sbuf[64];
__int64 __rdtsc()
{__int64 val; QueryPerformanceCounter((__int64*)&val); return val;}
double tsc2time(__int64 c)
{__int64 speed; QueryPerformanceFrequency((__int64*)&speed); return (double)(c)/speed;}
#endif

#endif